package zju.ccnt.rest.api;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * json-java object
 * 提交商家资源上传API格式，用户提交
 * Created by zha on 14/11/12.
 */
public class ApiCreateBusinessResource {
    @NotNull
    private String hashValue;
    @NotNull
    private String businessId;
    @NotNull
    private String uploaderId;
    @NotNull
    private String name;

    private String classId;
    @Length(max = 256)
    private String description;

    public ApiCreateBusinessResource(){}

    public String getHashValue() {
        return hashValue;
    }

    public void setHashValue(String hashValue) {
        this.hashValue = hashValue;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getUploaderId() {
        return uploaderId;
    }

    public void setUploaderId(String uploaderId) {
        this.uploaderId = uploaderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
